import java.io.*;
import java.util.Arrays;

public class Aa {
    public static void main(String[] args) throws IOException {
        File file=new File("C:/Users/mi/Desktop/2.txt");
        FileReader f=new FileReader(file);
        BufferedReader br =new BufferedReader(f);
        StringBuffer sb =new StringBuffer();
       while(true){
           String str =br.readLine();
           //只表示读取一行，
           if(str==null){
               break;
           }
            sb.append(str);
       }
       String [] s=sb.toString().split(" ");
        for (String a:s) {
            System.out.println(a);
        }

      // FileWriter fw=new FileWriter("C:/Users/mi/Desktop/2.txt");
      // BufferedWriter bw=new BufferedWriter(fw);
       //bw.write("2");






        }
}
